/*
 * Copyright 2008 Federal Emergency Management Agency
 * 
 * Licensed under the Apache License, Version 2.0 (the "License"); 
 * you may not use this file except in compliance with the License. 
 * You may obtain a copy of the License at 
 * 
 *    http://www.apache.org/licenses/LICENSE-2.0 
 *    
 * Unless required by applicable law or agreed to in writing, software 
 * distributed under the License is distributed on an "AS IS" BASIS, 
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and 
 * limitations under the License. 
 *  
 */
package gov.fema.hazus.bdc.shared.entity;

import java.io.Serializable;

import javax.persistence.Entity;
import javax.persistence.Id;

@Entity
public class Capacity implements Serializable {
	
	@Id Long id;
	private static final long serialVersionUID = 4351391507661523903L;
	
	private Integer daytimeOccupants;
	private Integer nighttimeOccupants;
	private String kitchen;
	private Integer kitchenCapacity;
	private String dining;
	private Integer diningCapacity;
	private String sleeping;
	private Integer sleepingCapacity;
	private Integer hospitalBeds;
	private Integer vehicles;
	private String hazardousMaterials;
	
	// constants - field names
	public static final String DAYTIME = "daytime occupants";
	public static final String NIGHTTIME = "nighttime occupants";
	public static final String KITCHEN = "kitchen";
	public static final String KITCHENCAPACITY = "kitchen capacity";
	public static final String DINING = "dining";
	public static final String DININGCAPACITY = "dining capacity";
	public static final String SLEEPING = "sleeping";
	public static final String SLEEPINGCAPACITY = "sleeping capacity";
	public static final String HOSPITALBEDS = "hospital beds";
	public static final String VEHICLES = "vehicles";
	public static final String HAZARDOUSMATERIALS = "hazardous materials";
	
	public Capacity()
	{
		daytimeOccupants = new Integer(0);
		nighttimeOccupants = new Integer(0);
		kitchenCapacity = new Integer(0);
		diningCapacity = new Integer(0);
		sleepingCapacity = new Integer(0);
		hospitalBeds = new Integer(0);
		vehicles = new Integer(0);
	}


	public Integer getDaytimeOccupants() {
		return daytimeOccupants;
	}





	public void setDaytimeOccupants(Integer daytimeOccupants) {
		this.daytimeOccupants = daytimeOccupants;
	}





	public String getDining() {
		return dining;
	}





	public void setDining(String dining) {
		this.dining = dining;
	}





	public Integer getDiningCapacity() {
		return diningCapacity;
	}





	public void setDiningCapacity(Integer diningCapacity) {
		this.diningCapacity = diningCapacity;
	}





	public String getHazardousMaterials() {
		return hazardousMaterials;
	}





	public void setHazardousMaterials(String hazardousMaterials) {
		this.hazardousMaterials = hazardousMaterials;
	}





	public Integer getHospitalBeds() {
		return hospitalBeds;
	}





	public void setHospitalBeds(Integer hospitalBeds) {
		this.hospitalBeds = hospitalBeds;
	}





	public String getKitchen() {
		return kitchen;
	}





	public void setKitchen(String kitchen) {
		this.kitchen = kitchen;
	}





	public Integer getKitchenCapacity() {
		return kitchenCapacity;
	}





	public void setKitchenCapacity(Integer kitchenCapacity) {
		this.kitchenCapacity = kitchenCapacity;
	}





	public Integer getNighttimeOccupants() {
		return nighttimeOccupants;
	}





	public void setNighttimeOccupants(Integer nighttimeOccupants) {
		this.nighttimeOccupants = nighttimeOccupants;
	}





	public String getSleeping() {
		return sleeping;
	}





	public void setSleeping(String sleeping) {
		this.sleeping = sleeping;
	}





	public Integer getSleepingCapacity() {
		return sleepingCapacity;
	}





	public void setSleepingCapacity(Integer sleepingCapacity) {
		this.sleepingCapacity = sleepingCapacity;
	}





	public Integer getVehicles() {
		return vehicles;
	}





	public void setVehicles(Integer vehicles) {
		this.vehicles = vehicles;
	}





	public String toString()
	{
		String str = "";
		str += "[capacity";
		str += "[daytim-occupants="+this.daytimeOccupants+"]";
		str += "[nighttime-occupants="+this.nighttimeOccupants+"]";
		str += "[kitchen="+this.kitchen+"]";
		str += "[kitchen-capacity="+this.kitchenCapacity+"]";
		str += "[dining="+this.dining+"]";
		str += "[dining-capacity="+this.diningCapacity+"]";
		str += "[sleeping="+this.sleeping+"]";
		str += "[sleeping-capacity="+this.sleepingCapacity+"]";
		str += "[hospital-beds="+this.hospitalBeds+"]";
		str += "[vehicles="+this.vehicles+"]";
		str += "[hazardous-materials="+this.hazardousMaterials+"]";
		str += "]";
		return str;
	}


	public Long getId() {
		return id;
	}


	public void setId(Long id) {
		this.id = id;
	}	
	
}
